//
//  ShopHomeViewController.h
//  OrderSeat
//
//  Created by wangwei on 13-10-5.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TabBarController.h"

@class ShopCommentCell;
@class ShopHomeDataSource;
@interface ShopHomeViewController : BaseViewController<TabBarControllerDelegate,UIAlertViewDelegate>
@property (strong, nonatomic) IBOutlet UIView *lastView;
@property (strong, nonatomic) IBOutlet UIView *firstView;
@property (strong, nonatomic) IBOutlet UIView *secondView;
@property (strong, nonatomic) IBOutlet UIView *thridView;
@property (weak, nonatomic) IBOutlet UIView *tableHeader;

@property (strong, nonatomic) IBOutlet UILabel *shopNameLabel;
@property (strong, nonatomic) IBOutlet UIImageView *logoIV;
@property (strong, nonatomic) IBOutlet UILabel *fuwuLabel;
@property (strong, nonatomic) IBOutlet UILabel *kouweiLabel;
@property (strong, nonatomic) IBOutlet UILabel *huanjingLabel;
@property (strong, nonatomic) IBOutlet UILabel *zhekouLabel;
@property (strong, nonatomic) IBOutlet UIButton *btnXihuan;
@property (strong, nonatomic) IBOutlet UIButton *btnShoucang;
@property (strong, nonatomic) IBOutlet UILabel *caixiLabel;
@property (strong, nonatomic) IBOutlet UIButton *addressLabel;
@property (strong, nonatomic) IBOutlet UIButton *phoneLabel;
@property (strong, nonatomic) IBOutlet UILabel *huodongLabel;

@property (strong, nonatomic) IBOutlet UILabel *tuijianNameLabel;
@property (strong, nonatomic) IBOutlet UILabel *tuijianContentLabel;
@property (strong, nonatomic) IBOutlet UIImageView *tuijianLogo;
@property (weak, nonatomic) IBOutlet UILabel *commTitleLabel;

@property (strong, nonatomic) IBOutlet UILabel *commCountLabel;
@property (strong, nonatomic) IBOutlet UITableView *commentsTable;
@property (strong, nonatomic) IBOutlet UIScrollView *theScrollview;

@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSMutableDictionary *viewControllers;
@property (strong, nonatomic) id parentViewController;
@property (strong, nonatomic) ShopHomeDataSource  *dataSource;

- (id)initWithId:(NSString *)shopId;
- (void)pushViewController:(Class)_class;

@end


@interface ShopHomeDataSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) NSDictionary *shopInfoDic;
@property (nonatomic, strong) NSArray *commentsList;
@property (nonatomic, strong) ShopCommentCell *commentCell;
@property (nonatomic, strong) ShopHomeViewController *viewController;

- (void)fetchShopInfoWithId:(NSString *)shopId;
- (void)like:(NSString*)shopId;
- (void)favorites:(NSString*)shopId username:(NSString*)username;
- (void)checkHaveSeat;

@end







